<% @page_title = " :: #{@replica_system.name}" %>

<% content_for :sidebar do %>
	<div class="little_infos">
		<div class="little_content">
			<span class="sidebar_title">Edit</span>
			<%= link_to 'This Storage System', :action => 'edit', :id => @replica_system %>
		</div>
		
		<div class="little_content">
			<span class="sidebar_title">Create</span>
			<%= (image_tag 'add.png') + "&nbsp;" + (link_to 'Storage System', :action => 'new') %>
		</div>
		
		<div class="little_content">
			<span class="sidebar_title">Visit</span>
			<%= link_to 'Storage Systems', :action => 'index' %>
		</div>
	</div>
<% end %>

<h1><%= "#{@replica_system.name}" %></h1>
<div class="span-17 last">
	<p><label>Name:</label>
	<%= "#{@replica_system.name}" %></p>
</div>

<hr class="separator" />
<div class="span-7">
	<p><label>Location:</label>
	<%= "#{@replica_system.hostname}" + "#{@replica_system.internal_uri}" %></p>
</div>

<div class="span-7 last">
	<p><label>Protocol:</label>
	<%= "#{@replica_system.protocol}" %></p>
</div>

<hr class="separator" />
<div class="span-7">
	<p><label>Require Authentication?:</label>
	<%= @replica_system.require_authentication? ? "Yes" : "No" %></p>
</div>

<div class="span-7 last">
	<p><label>Main Storage System?:</label>
	<%= (@replica_system.main) ? "Yes" : "No" %>
</div>

<% unless @replica_system.main? %>
	<hr class="separator" />
	<div class="span-7">
		<%= image_tag('replicate.png') + '&nbsp;' + (link_to_remote 'Programs Replication', 
			:update => 'replication_area', :url => { :controller => 'fetchers', :action => 'programs', :repository_id => @replica_system }) %>
	</div>
	
	<div class="span-7 last">
		<%= image_tag('replicate.png') + '&nbsp;' + (link_to_remote 'Audio Assets Replication', 
			:update => 'replication_area', :url => { :controller => 'fetchers', :action => 'audio_assets', :repository_id => @replica_system }) %>
	</div>
	
	<div id="replication_info" class="span-18 centered last" style="display: none; background-color: #CCCCCC; padding: 1px;">
	<%= image_tag 'indicator.gif' %>&nbsp;<b>Updating Storage System</b></div>
	
	<div id="replication_area"></div>
<% end %>